<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${title }</title>
<!--自定义index样式-->
<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
<link rel="stylesheet" href="${ctx }/static/styles/edit/tableStyle.css"></link>
<!--js库-->
<%@ include file="/static/commons/jquery-easyui.jsp"%>
<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	var headers = {};
	headers['__RequestVerificationToken'] = "${RequestVerificationToken}";
</script>
<style type="text/css">
body{overflow: hidden; padding: 10px 20px;}

#qjy input[type='text']{height: 100%; }
.gasDiv{width:100px; min-height: 26px; border: 0; font-size: 12px;text-align: left;}
.gasDiv input{width:inherit; height:inherit; cursor: pointer;}
.gasDiv label{margin: 2px; display: inline-block; cursor: pointer; min-width: 43px;}
.gasDiv span{width:100%;display:block; text-align:center; line-height: 26px; height: 26px;}
</style>
</head>

<body>
	<c:set var="disabled" value="disabled"></c:set>
	
	<form id="editForm" method="post">
	<input type="hidden" value="${obj.billing_id}" id="billingId" name="p_billingId" ></input>
		<table class="table-ltr">
			<caption>
				开票单详情
				<label> 单号： ${not empty obj.order_id ? obj.order_id : "系统自动生成"}</label>
			</caption>
			<tbody>
				<tr>
				    <td class="non-empty">开票名称：</td>
					<td style="width: 190px">
						<input type="text" readonly="readonly" value="${obj.billing_name }" maxLength="50"></input>
					</td>
					
					<td class="non-empty">申请人：</td>
					<td style="width: 190px">
						<input type="text" readonly="readonly" value="${obj.user_name }" maxLength="50"></input>
					</td>
					
					<td>业务员：</td>
					<td><input type="text" readonly="readonly" value="${obj.salesman }" maxLength="50"></input></td>
				</tr>
				<tr>
					<td class="non-empty">用户单位：</td>
					<td>${obj.cust_name }</td>
					
					<td class="non-empty">总金额：</td>
					<td>${obj.total_price }</td>
					
					<td class="non-empty">接收日期：</td>
					<td><input type="text" readonly="readonly" value="<fmt:formatDate value="${obj.billing_date }" pattern="yyyy-MM-dd"/>" lass="Wdate" ${disabled } onFocus="WdatePicker()"></input></td>
				</tr>
			</tbody>
		</table>
		
		<div class="tab">			
			<div class="tab-body">
				<!-- 气瓶 -->
				<div class="tab-content s0">
					<table class="table-utd" id="qp">
						<thead>
							<tr>
								<th>序号</th>
								<th>型号</th>
								<th>数量</th>
								<th>单价</th>
								<th>小计</th>								
							</tr>
						</thead>
						<c:forEach items="${details }" var="equ" varStatus="status">
						 <tbody>
							<tr> 
								<td>${status.count }</td>
								<td><input type="text" id="deviceModel" disabled=${disabled } value="${equ.device_model}"></input></td>
								<td><input type="text" id="num" disabled=${disabled } value="${equ.num }"></input></td>
								<td><input type="text" id="unitPrice" disabled=${disabled } value="${equ.unit_price }"></input></td>
								<td><input type="text" id="totalPrice" disabled=${disabled } value="${equ.total_price }"></input></td>
							</tr>
						 </tbody>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>

	</form>
</body>
<script type="text/javascript">
var wh = $(window).height();
var ht = wh - 20 - 161 - 40 - 5;
$('.tab-body').height(ht);
var Index = function(){
	return {
		init: function(){
			
		},
		
	};
}();

$(function(){
	Index.init();
});
</script>
</html>